<%--
  Created by IntelliJ IDEA.
  User: wwh
  Date: 2017/7/17
  Time: 16:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>招聘信息</title>
    <link rel="stylesheet" href="../../static/common/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/global.css">
    <link rel="stylesheet" href="../../static/css/table.css">
</head>
<body id="body">
<div style="margin:15px;" id="Vue" v-cloak>
    <div v-show="show">
        <blockquote class="layui-elem-quote">
            <a style="height: 10px;line-height: 28px;padding: 0 7px;font-size: 10px;"></a>
            <div style="float: right;">
                <input type="text" id="searchVal">
                <a href="javascript:;" class="layui-btn layui-btn-small" @click="search">
                    <i class="layui-icon">&#xe615;</i>查询
                </a>
            </div>
        </blockquote>
        <fieldset class="layui-elem-field">
            <div class="layui-form">
                <table class="layui-table">
                    <thread>
                        <tr>
                            <th>类型</th>
                            <th>企业</th>
                            <th>标题</th>
                            <th>工作城市</th>
                            <th>起薪</th>
                            <th>操作</th>
                        </tr>
                    </thread>
                    <%--内容容器--%>
                    <tbody id="content">
                    </tbody>
                </table>
            </div>
        </fieldset>

        <%--分页容器--%>
        <div class="admin-table-page">
            <div id="paged" class="page">
            </div>
        </div>
    </div>

    <%--<div v-show="!show">--%>
        <%--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">--%>
            <%--<legend>公司信息</legend>--%>
        <%--</fieldset>--%>
        <%--<form class="layui-form" action="" method="post" style="width: 800px">--%>
            <%--<div id="content">--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">公司全称</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="realname" v-model="orgInfo.fullname" autocomplete="off"--%>
                               <%--class="layui-input" disabled>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">公司简称</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="shortname" autocomplete="off" class="layui-input"--%>
                               <%--v-model="orgInfo.shortname" disabled>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">地址</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="addr" autocomplete="off" class="layui-input" v-model="orgInfo.addr" disabled>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">联系人</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="contactor" autocomplete="off" class="layui-input"--%>
                               <%--v-model="orgInfo.contactor" disabled>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">联系电话</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="phone" autocomplete="off" class="layui-input" v-model="orgInfo.phone" disabled>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">网址</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<a id="url" target="_blank" href="javascript:;" class="layui-input">{{orgInfo.url}}</a>--%>
                        <%--&lt;%&ndash;<input type="text" href="{{ orgInfo.url }}" name="url" autocomplete="off" class="layui-input" v-model="orgInfo.url">&ndash;%&gt;--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<label class="layui-form-label">经度</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="longtitude" autocomplete="off" class="layui-input"--%>
                               <%--v-model="orgInfo.longtitude" disabled>--%>
                    <%--</div>--%>
                    <%--<label class="layui-form-label">纬度</label>--%>
                    <%--<div class="layui-input-inline">--%>
                        <%--<input type="text" name="latitude" autocomplete="off" class="layui-input"--%>
                               <%--v-model="orgInfo.latitude" disabled>--%>
                    <%--</div>--%>
                <%--</div>--%>
            <%--</div>--%>
            <%--&lt;%&ndash;Todo 上传按钮样式切换&ndash;%&gt;--%>
            <%--<div class="layui-form-item">--%>
                <%--<label class="layui-form-label">营业执照照片</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--&lt;%&ndash;<input type="file" name="fileUp" id="businessliscense" class="layui-upload-file disabled_btn" disabled>&ndash;%&gt;--%>
                    <%--<img id="business" style="height: 100px;width: 100px">--%>
                <%--</div>--%>
            <%--</div>--%>
            <%--<div class="layui-form-item">--%>
                <%--<label class="layui-form-label">单位外景照片</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--&lt;%&ndash;<input type="file" name="fileUp" id="outsidepic" class="layui-upload-file" disabled>&ndash;%&gt;--%>
                    <%--<img id="out" style="height: 100px;width: 100px">--%>
                <%--</div>--%>
            <%--</div>--%>
            <%--<div id="button" v-cloak>--%>
                <%--<div class="layui-form-item">--%>
                    <%--<div class="layui-input-block">--%>
                        <%--<button type="button" class="layui-btn" @click="reload">返回</button>--%>
                    <%--</div>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</form>--%>
    <%--</div>--%>
</div>
<div id="bdMap" style="width: 300px;height: 300px;float: right;position: relative;top: -650px;right:200px"></div>
<script>
    var userid = ${sessionScope.currentUser.getId()};
</script>
<script src="../../static/common/axios.min.js"></script>
<script src="http://api.map.baidu.com/api?v=2.0&ak=8K08Q6AWX7LcrskmDiE6BFSG5LqUfGGE&s=1"></script>
<script src="../../static/common/vue.min.js"></script>
<script src="../../static/common/layui/layui.js"></script>
<script src="../../static/js/layuiModulesEX/common.js"></script>
<!--模板-->
<script type="text/html" id="tpl">
    {{# layui.each(d.data,function(index,item){ }}
    <tr>
        <%--招聘类型--%>
        {{# if(item.recruitInfo.type == ""){ }}
        <td>-</td>
        {{# }; }}
        {{# if(item.recruitInfo.type == "1"){ }}
        <td>实习</td>
        {{# }; }}
        {{# if(item.recruitInfo.type == "2"){ }}
        <td>就业</td>
        {{# }; }}


        {{# if(item.recruitInfo.orgid == ""){ }}
        <td>-</td>
        {{# }; }}
        {{# if(item.recruitInfo.orgid != ""){ }}
        <td>
            <a href="javascript:;" data-id="{{ item.recruitInfo.orgid }}" data-opt="company">{{ item.orginfoFullName }}</a>
        </td>
        {{# }; }}

        <%--<td>{{ item.orginfoFullName || "-" }}</td>--%>
        <td>{{ item.recruitInfo.title || "-" }}</td>
        <td>{{ item.recruitInfo.workingcity || "-" }}</td>
        <td>{{ item.recruitInfo.salaryllimit || "-" }}</td>

        <td>
            <a href="javascript:;" target="_self" data-id="{{ item.recruitInfo.id }}" data-opt="more"
                class="layui-btn layui-btn-normal layui-btn-mini">详情</a>
            <a href="javascript:;" target="_self" data-id="{{ item.recruitInfo.id }}" data-opt="apply"
               class="layui-btn layui-btn-mini">应聘</a>
        </td>
    </tr>
    {{# }); }}
</script>
<!--详情弹框模板-->
<script type="text/html" id="detailTpl">
    {{# var item=d; }}
    <div class="layui-form-item">
        <label class="layui-form-label">标题</label>
        <div class="layui-input-inline">
            <input type="text" name="title" autocomplete="off" class="layui-input" value="{{ item.title }}">
        </div>
        <label class="layui-form-label">招聘类型</label>
        <div class="layui-input-inline">
            {{# if(item.type == ""){ }}
            <input type="text" name="type" autocomplete="off" class="layui-input" value="---" disabled>
            {{# }; }}
            {{# if(item.type == "1"){ }}
            <input type="text" name="type" autocomplete="off" class="layui-input" value="实习" disabled>
            {{# }; }}
            {{# if(item.type == "2"){ }}
            <input type="text" name="type" autocomplete="off" class="layui-input" value="就业" disabled>
            {{# }; }}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">工作城市</label>
        <div class="layui-input-inline">
            <input type="text" name="workingCity" autocomplete="off" class="layui-input" value="{{ item.workingcity }}">
        </div>
        <label class="layui-form-label">起薪</label>
        <div class="layui-input-inline">
            <input type="text" name="salary" autocomplete="off" class="layui-input" value="{{ item.salaryllimit }}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">招聘人数</label>
        <div class="layui-input-inline">
            <input type="text" name="recruitNum" autocomplete="off" class="layui-input" value="{{ item.recruitnum }}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">工作内容</label>
        <div class="layui-input-inline">
            <div name="job" class="layui-textarea" style="overflow:auto;" id="job"></div>
            <%--<textarea type="text" name="comment" id="job" class="layui-input" value="{{ item.job }}"></textarea>--%>
            <%--<input type="text" name="job" autocomplete="off" class="layui-input" value="{{ item.job }}">--%>
        </div>
        <label class="layui-form-label">其它说明</label>
        <div class="layui-input-inline">
            <textarea type="text" name="comment" id="comment" class="layui-input" value="{{ item.comment }}">{{ item.comment }}</textarea>
            <%--<input type="text" name="comment" autocomplete="off" class="layui-input" value="{{ item.comment }}">--%>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">工作环境</label>
        <div class="layui-input-block">
            <img id="environment" style="height: 100px;width: 100px">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">招聘联系人</label>
        <div class="layui-input-inline">
            <input type="text" name="contactor" autocomplete="off" class="layui-input" value="{{ item.contactperson }}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
            <input type="text" name="phone" autocomplete="off" class="layui-input" value="{{ item.phone }}">
        </div>
        <label class="layui-form-label">电子邮箱</label>
        <div class="layui-input-inline">
            <input type="text" name="email" autocomplete="off" class="layui-input" value="{{ item.email }}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">发布日期</label>
        <div class="layui-input-inline">
            <input type="text" name="publishdate" autocomplete="off" class="layui-input" value="{{ getYearMonthDate(item.publishdate) }}">
        </div>
    </div>
</script>
<script src="../../static/js/student/recruitInfo.js"></script>
</body>
</html>
